import React, { useEffect, useState } from "react"
function useMouse() {
  const [x, setX] = useState(0)
  const [y, setY] = useState(0)
  const mouseMoveHandler = (event: MouseEvent) => {
    setX(event.clientX)
    setY(event.clientY)
  }

  useEffect(()=>{
    window.addEventListener
  })
}
export default useMouse
